package entities.effects;

import entities.hero.Hero;

public class Damage extends Effect {
	
	int damage;
	
	public Damage() {
		
	}
	
	public Damage(int damage) {
		this.damage = damage;
	}
	
	@Override
	public void invokeEffect(Hero target) {
		target.setLife(target.getLife() - damage);
	}
}
